package com.wb.mas.ui.bank;

import android.os.Bundle;

import androidx.lifecycle.ViewModelProviders;

import com.wb.mas.BR;
import com.wb.mas.R;
import com.wb.mas.app.AppViewModelFactory;
import com.wb.mas.databinding.ActBankBinding;

import me.goldze.mvvmhabit.base.BaseActivity;

/**
 * Copyright (C) 2018
 * BankActivity
 * <p>
 * Description
 *
 * @author Administrator
 * @version 1.0
 * <p>
 * Ver 1.0, 2019/5/2 0002, Administrator, Create file
 */
public class BankActivity extends BaseActivity<ActBankBinding, BankViewModel> {

    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.act_bank;
    }


    @Override
    public BankViewModel initViewModel() {
        AppViewModelFactory factory = AppViewModelFactory.getInstance(getApplication());
        BankViewModel bankViewModel = ViewModelProviders.of(this, factory).get(BankViewModel.class);
        return bankViewModel;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }
}
